<template>
    <NuxtLayout >
      <p>{{ $route.params.group }} - {{ $route.params.id }}</p>
    </NuxtLayout>
</template>

<script setup lang="ts">
  const route = useRoute()
  if (route.params.group === 'admins' && route.params.id) {
    console.log(route.params.id)
  }
</script>